package com.xzzz.irda.guardcat.server.metric.memory;

import com.xzzz.irda.guardcat.server.app.pojo.MachineInfo;
import com.xzzz.irda.guardcat.server.metric.MetricListener;
import lombok.extern.slf4j.Slf4j;

/**
 * 该监听类不依赖 Spring 管理
 * 如需注入 Spring 相关类需在方法内手动创建
 *
 * @author xzzz
 */
@Slf4j
public class JmmListener {

    @MetricListener(metric = JmmInfo.class)
    public void handle(MachineInfo info, JmmInfo jmmInfo) {
//        AlertServiceSender.send("警告了警告了", true, Alert.Level.ERROR);
    }

}
